#include <iostream>
using namespace std;

/*
maxM = 0

1X: 1Y 2Y 3Y 4Y ... NY 1X + NY -> maxM
2X: 1Y 2Y 3Y ... KY.   2X + KY -> max(maxM, 2X+KY)
3X: 1Y 2Y ... JY.      3X + JY -> max(maxM, 3X+JY)
...
只用 X 桶都溢出了，结束
*/
int milkPails(int x, int y, int m) {

}

int main(int argc, char const *argv[])
{
  /* code */
  return 0;
}
